package com.fuluwa.infra.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateFormats {

	public static String formatyyyyMMddHHmmss(Date date) {
		return new SimpleDateFormat("yyyyMMddHHmmss").format(date);
	}
	public static String formatyyyy_MM_dd_HH_mm_ss(Date date) {
		return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date);
	}
	public static String formatyyyyMMdd(Date date) {
		return new SimpleDateFormat("yyyyMMdd").format(date);
	}
	public static String formatyyyy_MM_dd(Date date) {
		return new SimpleDateFormat("yyyy-MM-dd").format(date);
	}
}
